shoplist = ['apple', 'banana', 'milk']
print('我有', len(shoplist), '种食物要买')
print('这些食物分别是 :')
for i in shoplist:
    print(i, end=' ')

print('\n我还要买草莓')
shoplist.append('strawberry')
print('现在我的商品列表是：', shoplist)
shoplist.sort()
print("商品排序：", shoplist)
print('我将要买', shoplist[0])
olditem = shoplist.pop(0)
print('我已经买了', olditem)
print('现在我的购物车列表是:', shoplist)